/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.intellij.lang.regexp.psi.RegExpSimpleClass;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ public class RegExpSimpleClassImpl
/* 10:   */   extends RegExpElementImpl
/* 11:   */   implements RegExpSimpleClass
/* 12:   */ {
/* 13:   */   public RegExpSimpleClassImpl(ASTNode paramASTNode)
/* 14:   */   {
/* 15:26 */     super(paramASTNode);
/* 16:   */   }
/* 17:   */   
/* 18:   */   @NotNull
/* 19:   */   public RegExpSimpleClass.Kind getKind()
/* 20:   */   {
/* 21:31 */     String str = getUnescapedText();
/* 22:32 */     if (str.equals("."))
/* 23:   */     {
/* 24:33 */       RegExpSimpleClass.Kind tmp17_14 = RegExpSimpleClass.Kind.ANY;
/* 25:33 */       if (tmp17_14 == null) {
/* 26:33 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 27:   */       }
/* 28:33 */       return tmp17_14;
/* 29:   */     }
/* 30:34 */     if (str.equals("\\d"))
/* 31:   */     {
/* 32:35 */       RegExpSimpleClass.Kind tmp64_61 = RegExpSimpleClass.Kind.DIGIT;
/* 33:35 */       if (tmp64_61 == null) {
/* 34:35 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 35:   */       }
/* 36:35 */       return tmp64_61;
/* 37:   */     }
/* 38:36 */     if (str.equals("\\D"))
/* 39:   */     {
/* 40:37 */       RegExpSimpleClass.Kind tmp111_108 = RegExpSimpleClass.Kind.NON_DIGIT;
/* 41:37 */       if (tmp111_108 == null) {
/* 42:37 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 43:   */       }
/* 44:37 */       return tmp111_108;
/* 45:   */     }
/* 46:38 */     if (str.equals("\\w"))
/* 47:   */     {
/* 48:39 */       RegExpSimpleClass.Kind tmp158_155 = RegExpSimpleClass.Kind.WORD;
/* 49:39 */       if (tmp158_155 == null) {
/* 50:39 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 51:   */       }
/* 52:39 */       return tmp158_155;
/* 53:   */     }
/* 54:40 */     if (str.equals("\\W"))
/* 55:   */     {
/* 56:41 */       RegExpSimpleClass.Kind tmp205_202 = RegExpSimpleClass.Kind.NON_WORD;
/* 57:41 */       if (tmp205_202 == null) {
/* 58:41 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 59:   */       }
/* 60:41 */       return tmp205_202;
/* 61:   */     }
/* 62:42 */     if (str.equals("\\s"))
/* 63:   */     {
/* 64:43 */       RegExpSimpleClass.Kind tmp252_249 = RegExpSimpleClass.Kind.SPACE;
/* 65:43 */       if (tmp252_249 == null) {
/* 66:43 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 67:   */       }
/* 68:43 */       return tmp252_249;
/* 69:   */     }
/* 70:44 */     if (str.equals("\\S"))
/* 71:   */     {
/* 72:45 */       RegExpSimpleClass.Kind tmp299_296 = RegExpSimpleClass.Kind.NON_SPACE;
/* 73:45 */       if (tmp299_296 == null) {
/* 74:45 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 75:   */       }
/* 76:45 */       return tmp299_296;
/* 77:   */     }
/* 78:47 */     if (!$assertionsDisabled) {
/* 79:47 */       throw new AssertionError();
/* 80:   */     }
/* 81:48 */      tmp349_348 = null;
/* 82:48 */     if (tmp349_348 == null) {
/* 83:48 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpSimpleClassImpl", "getKind" }));
/* 84:   */     }
/* 85:48 */     return tmp349_348;
/* 86:   */   }
/* 87:   */   
/* 88:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 89:   */   {
/* 90:52 */     paramRegExpElementVisitor.visitSimpleClass(this);
/* 91:   */   }
/* 92:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpSimpleClassImpl

 * JD-Core Version:    0.7.0.1

 */